package com.jsf.controller;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class HelloServlet extends HttpServlet{
	
	
	protected void TraitementHelloJSP(HttpServletRequest req, HttpServletResponse resp)
			throws ServletException, IOException {
	
		
		System.out.println("HelloServlet:TraitementHelloJSP");
		req.getServletContext().getRequestDispatcher("/response.jsp").forward(req, resp);
	}
	
	

	protected void doGet(HttpServletRequest req, HttpServletResponse resp)
			throws ServletException, IOException {
		TraitementHelloJSP(req, resp);
	}

	

	protected void doPost(HttpServletRequest req, HttpServletResponse resp)
			throws ServletException, IOException {
	TraitementHelloJSP(req, resp);
	}
}
